﻿using Design.Common.Utils;

namespace FactoryMethodPattern.Product
{
    internal abstract class BaseProduct
    {
        public string Name { get; set; }

        public void CreateEngine()
        {
            ConsoleExpansion.WriteLine($"{this.Name} create engine");
        }

        public void CreateWheel()
        {
            ConsoleExpansion.WriteLine($"{this.Name} create wheel");
        }

        public void CreateComplete()
        {
            ConsoleExpansion.WriteLine($"{this.Name} create success");
        }

        public abstract void Prepare();
    }
}